package com.ruoyi.article.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.article.mapper.ZRelationArticleLabelMapper;
import com.ruoyi.article.domain.ZRelationArticleLabel;
import com.ruoyi.article.service.IZRelationArticleLabelService;

/**
 * 文章标签关系Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-24
 */
@Service
public class ZRelationArticleLabelServiceImpl extends ServiceImpl<ZRelationArticleLabelMapper,ZRelationArticleLabel> implements IZRelationArticleLabelService
{
    @Autowired
    private ZRelationArticleLabelMapper zRelationArticleLabelMapper;

    /**
     * 查询文章标签关系
     * 
     * @param id 文章标签关系主键
     * @return 文章标签关系
     */
    @Override
    public ZRelationArticleLabel selectZRelationArticleLabelById(Long id)
    {
        return zRelationArticleLabelMapper.selectZRelationArticleLabelById(id);
    }

    /**
     * 查询文章标签关系列表
     * 
     * @param zRelationArticleLabel 文章标签关系
     * @return 文章标签关系
     */
    @Override
    public List<ZRelationArticleLabel> selectZRelationArticleLabelList(ZRelationArticleLabel zRelationArticleLabel)
    {
        return zRelationArticleLabelMapper.selectZRelationArticleLabelList(zRelationArticleLabel);
    }

    /**
     * 新增文章标签关系
     * 
     * @param zRelationArticleLabel 文章标签关系
     * @return 结果
     */
    @Override
    public int insertZRelationArticleLabel(ZRelationArticleLabel zRelationArticleLabel)
    {
        return zRelationArticleLabelMapper.insertZRelationArticleLabel(zRelationArticleLabel);
    }

    /**
     * 修改文章标签关系
     * 
     * @param zRelationArticleLabel 文章标签关系
     * @return 结果
     */
    @Override
    public int updateZRelationArticleLabel(ZRelationArticleLabel zRelationArticleLabel)
    {
        return zRelationArticleLabelMapper.updateZRelationArticleLabel(zRelationArticleLabel);
    }

    /**
     * 批量删除文章标签关系
     * 
     * @param ids 需要删除的文章标签关系主键
     * @return 结果
     */
    @Override
    public int deleteZRelationArticleLabelByIds(Long[] ids)
    {
        return zRelationArticleLabelMapper.deleteZRelationArticleLabelByIds(ids);
    }

    /**
     * 删除文章标签关系信息
     * 
     * @param id 文章标签关系主键
     * @return 结果
     */
    @Override
    public int deleteZRelationArticleLabelById(Long id)
    {
        return zRelationArticleLabelMapper.deleteZRelationArticleLabelById(id);
    }
}
